import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2022-11-22
 * Time: 9:37
 */
public class Test1 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        while (scan.hasNext()){
            String s1 = scan.nextLine();
            String[] s = s1.split(" ");
            for (int i = s.length-1; i >=0; i--) {
                if(i == 0 || i == s.length - 1){
                    System.out.print(s[i]);
                }else {
                    System.out.print(s[i]+" ");
                }
            }
        }
    }
}
